Comments
Comments are ignored by the compiler.
Line Comments
A line comment starts with // and extends to the end of the line.
var x = 5 // This is a line comment
Block Comments
Block comments start with /* and end with */. They can span multiple lines and may be nested.
/*
This is a block comment.
/* Block comments can be nested. */
Still inside the outer comment.
*/